<div class="box create rounded">

	<a class="button good" href="<?php echo site_url(SITE_AREA .'/content/user_details/create'); ?>">
		<?php echo lang('user_details_create_new_button'); ?>
	</a>

	<h3><?php echo lang('user_details_create_new'); ?></h3>

	<p><?php echo lang('user_details_edit_text'); ?></p>

</div>

<br />

<?php if (isset($records) && is_array($records) && count($records)) : ?>
				
	<h2>User Details</h2>
	<table>
		<thead>
			<tr>
			
		<th>Student Id</th>
		<th>Achievement Points -Time-</th>
		<th>Achievement Points -Class-</th>
		<th>Achievement Points -Wiki-</th>
		<th>Achievement Points -Forum-</th>
		<th>Achievement Points -Main-</th>
		<th>Achievement Points -Side-</th>
		<th>Achievement Points -Meta-</th>
		<th>Student Photo</th>
		<th>Student Header</th>
		<th>Student Css</th>
		<th>Student Assetpath</th>
		<th>Student Ownpath</th>
		<th>Current Css</th>
		
			<th><?php echo lang('user_details_actions'); ?></th>
			</tr>
		</thead>
		<tbody>
		
		<?php foreach ($records as $record) : ?>
			<tr>
				
				<td><?php echo $record->student_id?></td>
				<td><?php echo $record->achievepoints_time?></td>
				<td><?php echo $record->achievepoints_class?></td>
				<td><?php echo $record->achievepoints_wiki?></td>
				<td><?php echo $record->achievepoints_forum?></td>
				<td><?php echo $record->achievepoints_main?></td>
				<td><?php echo $record->achievepoints_side?></td>
				<td><?php echo $record->achievepoints_meta?></td>
				<td><?php echo $record->student_photo?></td>
				<td><?php echo $record->student_header?></td>
				<td><?php echo $record->student_css?></td>
				<td><?php echo $record->student_assetpath?></td>
				<td><?php echo $record->student_ownpath?></td>
				<td><?php echo $record->current_css?></td>
				<td><?php echo anchor(SITE_AREA .'/content/user_details/edit/'. $record->id, lang('user_details_edit'), '') ?></td>
			</tr>
		<?php endforeach; ?>
		</tbody>
	</table>
<?php endif; ?>